<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="css/style.css"/>
    <link rel="stylesheet" href="assets/css/ace.min.css"/>
    <link rel="stylesheet" href="assets/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="Widget/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <link href="Widget/icheck/icheck.css" rel="stylesheet" type="text/css"/>
    <!--[if IE 7]>
    <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css"/>
    <![endif]-->
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="assets/css/ace-ie.min.css"/>
    <![endif]-->
    <script src="js/jquery-1.9.1.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/typeahead-bs2.min.js"></script>
    <!-- page specific plugin scripts -->
    <script src="assets/js/jquery.dataTables.min.js"></script>
    <script src="assets/js/jquery.dataTables.bootstrap.js"></script>
    <script type="text/javascript" src="js/H-ui.js"></script>
    <script type="text/javascript" src="js/H-ui.admin.js"></script>
    <script src="assets/layer/layer.js" type="text/javascript"></script>
    <script src="assets/laydate/laydate.js" type="text/javascript"></script>
    <script type="text/javascript" src="Widget/zTree/js/jquery.ztree.all-3.5.min.js"></script>
    <script src="js/lrtk.js" type="text/javascript"></script>
<title>SMS管理</title>

</head>

<body>
	
<div class="margin clearfix">
 <div class="stystems_style">
  <div class="tabbable">
  <div class="page-content clearfix">
    <div id="Member_Ratings">
      <div class="d_Confirm_Order_style">
	<ul class="nav nav-tabs" id="myTab">
	  <li class="active">
		<a data-toggle="tab" href="#home"><i class="green fa fa-home bigger-110"></i>平台购买记录</a></li>
		<li class="">
		<a data-toggle="tab" name="profile" href="#profile">企业购买记录</a></li>
		<li class="">
		<a data-toggle="tab" name="syqysyt" href="#syqysyt">企业剩余条数</a></li>
	</ul>
	</div>
	<br/>
	 
	 <!--<span onclick="" class="btn btn-info btn-xs" style="float:right;margin-right:50px; margin-top:4px">设置</span>-->
	 <span class="add_name" style="float:right;margin-right:20px;">平台短信剩余总条数：<span class="add_name" style="color:red;font-weight:bold;padding: 5px;height: 50px;line-height: 36px;margin-bottom: 20px;">1,242,334</span>&nbsp;条</span><br/><br/>

	<div class="tab-content">		
	 <div id="home" class="tab-pane active">	
	 <!---->
     <div class="border clearfix">
       <span class="l_f">
       <a href="javascript:ovid()" id="member_add" class="btn btn-warning"><i class="icon-plus"></i>添加平台购买记录</a>
       </span>
     </div>
        
	 <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
				<th width="80">序号</th>
				<th width="120">运营商</th>
				<th width="100">购买短信条数</th>
				<th width="100">购买人</th>
				<th width="120">购买金额</th>
				<th width="120">购买时间</th>
				<th width="120">备注</th>
			</tr>
		</thead>
	<tbody>
	<tr>
          <td>1</td>
          <td>电信天翼</td>
		  <td>100,000条</td>
          <td>张三</td>
		  <td>￥3000.00</td>
		  <td>2016-12-12 12:12:12</td>
		  <td>无备注</td>
		</tr>
		<tr>
          <td>2</td>
          <td>电信天翼</td>
		  <td>100,000条</td>
          <td>张三</td>
		  <td>￥3000.00</td>
		  <td>2016-12-12 12:12:12</td>
		  <td>无备注</td>
		</tr>
      </tbody>
	</table>
</div>
	<div id="profile" class="tab-pane ">

         <table class="table table-striped table-bordered table-hover" id="1sample-table" style="width:100%">
		<thead>
		 <tr>
				<th width="100">序号</th>
				<th width="100">企业名称</th>
				<th width="110">经营范围</th>
				<th width="100">联系方式</th>
				<th width="110">购买套餐</th>
				<th width="110">包含条数</th>
				<th width="110">支付金额</th>
				<th width="110">支付方式</th>
				<th width="110">购买时间</th>
				<th width="100">备注</th>
			</tr>
		</thead>
	<tbody>
	<tr>
          <td>1</td>
          <td>旭派电池责任有限公司</td>
		  <td>电池类</td>
          <td>0314-6584548</td>
		  <td>B套餐</td>
          <td>2000条</td>
		  <td>￥200</td>
		  <td>银联支付</td>
		  <td>2016-12-12 12:12:12</td>
		  <td>无备注</td>
		</tr>
		<tr>
          <td>2</td>
          <td>雅迪电动车股份有限公司</td>
		  <td>电动车类</td>
          <td>0314-6584548</td>
		  <td>C套餐</td>
          <td>5000条</td>
		  <td>￥400</td>
		  <td>银联支付</td>
		  <td>2016-12-12 12:12:12</td>
		  <td>无备注</td>
		</tr>
		<tr>
          <td>3</td>
          <td>XXXX有限公司</td>
		  <td>XX类</td>
          <td>0314-6584548</td>
		  <td>A套餐</td>
          <td>1000条</td>
		  <td>￥100</td>
		  <td>银联支付</td>
		  <td>2016-12-12 12:12:12</td>
		  <td>无备注</td>
		</tr>
      </tbody>
	</table>
	</div> 
	<div id="syqysyt" class="tab-pane ">
	<table class="table table-striped table-bordered table-hover" id="2sample-table" style="width:100%">
		<thead>
		 <tr>
				<th width="100">序号</th>
				<th width="100">企业名称</th>
				<th width="110">经营范围</th>
				<th width="100">联系方式</th>
				<th width="110">剩余短信(条)</th>
			</tr>
		</thead>
	<tbody>
	<tr>
          <td>1</td>
          <td>旭派电池责任有限公司</td>
		  <td>电池类</td>
          <td>0314-6584548</td>
		  <td>3251</td>
		</tr>
		<tr>
          <td>2</td>
          <td>雅迪电动车股份有限公司</td>
		  <td>电动车类</td>
          <td>0314-6584548</td>
		  <td>2515</td>
		</tr>
		<tr>
          <td>3</td>
          <td>XXXX有限公司</td>
		  <td>XX类</td>
          <td>0314-6584548</td>
		  <td>215</td>
		</tr>
      </tbody>
	</table>
	</div>
	  </div> 
<!--添加平台购买记录-->
<div class="add_menber" id="add_menber_style" style="display:none">
  
    <ul class=" page-content">
     <li><label class="label_name">运营商：</label><span class="add_name"><input value="" name="运营商" type="text"  class="text_add"/></span><div class="prompt r_f"></div></li>
     <li><label class="label_name">购买条数：</label><span class="add_name"><input name="购买条数" type="text"  class="text_add"/></span><div class="prompt r_f"></div></li>
     <li><label class="label_name">购买人：</label><span class="add_name"><input name="购买人" type="text"  class="text_add"/>元</span><div class="prompt r_f"></div></li>
	 <li><label class="label_name">购买金额：</label><span class="add_name"><input name="购买金额" type="text"  class="text_add"/></span><div class="prompt r_f"></div></li>
	 <li><label class="label_name">购买时间：</label><span class="add_name"><input name="购买时间" type="text"  class="text_add laydate-icon" id="start"/></span><div class="prompt r_f"></div></li>
     <li><label class="label_name">备注：</label><span class="add_name"><input name="备注" type="text"  class="text_add"/></span><div class="prompt r_f"></div></li>
    </ul>
 </div>


 </div>
		</div>
		</div>
 </div>
</div>
</body>
</html>
<script>
jQuery(function($) {
	 var oTable1 = $('#sample-table').dataTable({
            "aaSorting": [[1, "desc"]],//默认第几个排序
            "bStateSave": true,//状态保存
            "aoColumnDefs": [
                //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
                {"orderable": false, "aTargets": [0]}// 制定列不参与排序
            ]
        }); var oTable2 = $('#1sample-table').dataTable({
            "aaSorting": [[1, "desc"]],//默认第几个排序
            "bStateSave": true,//状态保存
            "aoColumnDefs": [
                //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
                {"orderable": false, "aTargets": [0]}// 制定列不参与排序
            ]
        });var oTable2 = $('#2sample-table').dataTable({
            "aaSorting": [[1, "desc"]],//默认第几个排序
            "bStateSave": true,//状态保存
            "aoColumnDefs": [
                //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
                {"orderable": false, "aTargets": [0]}// 制定列不参与排序
            ]
        });
			
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			})
/*平台购买积分记录*/
 $('#member_add').on('click', function(){
    layer.open({
        type: 1,
        title: '填写记录',
		maxmin: true, 
		shadeClose: true, //点击遮罩关闭层
        area : ['800px' , ''],
        content:$('#add_menber_style'),
		btn:['确定','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('添加成功！',{
               title: '提示框',				
			icon:1,		
			  });
			   layer.close(index);	
		  }		  		     				
		}
    });
});

 laydate({
    elem: '#start',
    event: 'focus' 
});
</script>
